import request from '@/utils/request'

// 查询车辆加油记录列表
export function listRefueling(query) {
  return request({
    url: '/service/refueling-records/list',
    method: 'get',
    params: query
  })
}

// 查询车辆加油记录详细
export function getRefueling(id) {
  return request({
    url: '/service/refueling-records/' + id,
    method: 'get'
  })
}

// 新增车辆加油记录
export function addRefueling(data) {
  return request({
    url: '/service/refueling-records',
    method: 'post',
    data: data
  })
}

// 修改车辆加油记录
export function updateRefueling(data) {
  return request({
    url: '/service/refueling-records',
    method: 'put',
    data: data
  })
}

// 删除车辆加油记录
export function delRefueling(id) {
  return request({
    url: '/service/refueling-records/' + id,
    method: 'delete'
  })
}
